<?php namespace Summer\Maphub;

use System\Classes\PluginBase;

class Plugin extends PluginBase
{
    public function registerComponents()
    {
        return [
            'Summer\Maphub\Components\CompanyMap' => 'companyMap',
        ];
    }

    public function registerSettings()
    {
        return [
            'settings' => [
                'label'       => '地图管理',
                'description' => '地图管理',
                'category'    => 'Summer',
                'icon'        => 'icon-map-marker',
                'class'       => 'Summer\Maphub\Models\Settings',
                'order'       => 600,
            ]
        ];
    }
    // FORM WIDGETS
    public function registerFormWidgets(){
        return [
            'Summer\Maphub\FormWidgets\Amap' => [
                'label' => '地图',
                'code'  => 'hub_form_amap'
            ],
        ];
    }
}
